Skip to content

Enhance notification validation, fallback to fallback provider when retry budget exceeds and implement SSL automation in onboard cli#11

Closed
Adhish-Krishna wants to merge 5 commits intomasterfrom
development
Closed

Enhance notification validation, fallback to fallback provider when retry budget exceeds and implement SSL automation in onboard cli#11
Adhish-Krishna wants to merge 5 commits intomasterfrom
development

Conversation

@Adhish-Krishna
Copy link
Member

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d16306cf5c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +331 to +333
if (typeof options.sslDomain === 'string') {
sslDomainValue = options.sslDomain.trim().toLowerCase();
} else if (!isFullMode) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Validate CLI SSL domain before accepting it

When SSL is enabled outside --full mode, CLI-provided --ssl-domain is accepted by simple trimming/lowercasing without running validatePublicDomain, so invalid values (for example URLs, domains with ports, or malformed hostnames) pass onboarding and only fail later during Certbot execution. This makes non-interactive/partially-interactive runs fail late and unpredictably; the same validation used for prompted input should also be applied to provided flags before returning setup options.

Useful? React with 👍 / 👎.

Comment on lines +119 to +122
const fallbackNotification: BaseNotification = {
...notification,
provider: fallbackProviderId,
};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Prevent duplicate fallback sends after retry-budget handoff

The new handoff path republishes messages with provider already set to the fallback provider; those messages are still processed through sendWithFallback, whose explicit-provider branch retries non-retryable failures via tryFallback, which resolves the configured fallback again. In the case where the current provider is already that fallback, this causes a second send attempt to the same provider for one message whenever the fallback returns retryable: false.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant